import request from '@/utils/request'

export function assetList(data) {
  return request({
    url: '/asset/assetlist',
    method: 'post',
    data
  })
}

export function assignmentList(data) {
  return request({
    url: '/asset/assignmentlist',
    method: 'post',
    data
  })
}

export function assetEvent(data) {
  return request({
    url: '/asset/assetevent',
    method: 'post',
    data
  })
}

export function facilitiesList(data) {
  return request({
    url: '/asset/facilitieslist',
    method: 'post',
    data
  })
}

export function bindfacilList(data) {
  return request({
    url: '/asset/bindfacillist',
    method: 'post',
    data
  })
}

export function addAsset(data) {
  return request({
    url: '/asset/addasset',
    method: 'post',
    data
  })
}

export function updateAsset(data) {
  return request({
    url: '/asset/updateasset',
    method: 'post',
    data
  })
}

export function deleteAsset(data) {
  return request({
    url: '/asset/deleteasset',
    method: 'post',
    data
  })
}

export function assetCategory(data) {
  return request({
    url: '/asset/assetcategory',
    method: 'post',
    data
  })
}

export function searcAssetList(data) {
  return request({
    url: '/asset/searcassetlist',
    method: 'post',
    data
  })
}
